package com.kakarote.examine.constant;

import java.util.Objects;

//处理方式：1自动提醒，2自动转交 3自动同意
public enum HandleTypeEnum {

    //1自动提醒
    AUTO_NOTICE(1),
    //2自动转交
    AUTO_FORWARD(2),
    //自动同意
    AUTO_PASS(3);

    private HandleTypeEnum(Integer type) {
        this.type = type;
    }

    private Integer type;

    public Integer getType() {
        return type;
    }

    public static HandleTypeEnum valueOf(Integer type) {
        for (HandleTypeEnum handleTypeEnum : values()) {
            if (Objects.equals(type, handleTypeEnum.getType())) {
                return handleTypeEnum;
            }
        }
        return AUTO_NOTICE;
    }

}
